package service;

import Pojo.Zulist;
import dao.ZulistMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ZulistServiceImpl
  implements ZulistService
{

  @Autowired
  private ZulistMapper zulistMapper;

  public void insertzulist(Zulist zulist)
  {
    this.zulistMapper.insertzulist(zulist);
  }

  public List<Zulist> findzuuserlist()
    throws Exception
  {
    List zulist = this.zulistMapper.findzuuserlist();

    return zulist;
  }

  public Zulist findzulist(String house_id)
  {
    Zulist zulist = this.zulistMapper.findzulist(house_id);
    return zulist;
  }

  public void deletezulist(String house_id)
  {
    this.zulistMapper.deletezulist(house_id);
  }

  public List<Zulist> findzulistbyuid(Integer userlist_id)
  {
    List zulist = this.zulistMapper.findzulistbyuid(userlist_id);
    return zulist;
  }
}